#ifndef EXISTSEXP_H
#define EXISTSEXP_H
#include "view.h"
#include "booleanExpression.h"
#include "querytree.h"
/*
 * Class: ExistsExpression
 *  A class to model exists boolean expressions in SQL queries
 */
 
class ExistsExpression: public BooleanExpression {
	private:
		QueryTree * query; //The query of the EXISTS expression
	public:
		~ExistsExpression();
		ExistsExpression();
		ExistsExpression(QueryTree* query);
		std::string toString();
		Expression * clone();
		QueryTree * getQuery();
};
#endif
